
package combat.dudes.server.protocol.implementation;

import combat.dudes.protocol.interfaces.OnboardSystemInt;
import combat.dudes.protocol.types.OnboardSystemStatus;
import combat.dudes.protocol.types.OnboardSystemType;


/**
 * @author Laurens Andriessen
 * @author Jesper Keijzer
 * @version 1.0
 */
public class OnboardSystem extends NewID.OnboardSystemID implements OnboardSystemInt {

	private static final long serialVersionUID = 1L;
	private int systemID;
	private OnboardSystemStatus status;
	private OnboardSystemType onboardSystemType;
	
	public OnboardSystem(){
		setSystemID(getID());
		setOnboardSystemStatus(OnboardSystemStatus.UNKNOWN);
		setOnboardSystemType(OnboardSystemType.UNKNOWN);
	}
	
	public OnboardSystem(OnboardSystemStatus status, OnboardSystemType onboardSystemType)
	{
		setSystemID(getID());
		setOnboardSystemStatus(status);
		setOnboardSystemType(onboardSystemType);
	}

	@Override
	public int getSystemID() {
		return systemID;
	}

	@Override
	public void setSystemID(int systemID) {
		this.systemID = systemID;
	}

	@Override
	public OnboardSystemType getOnboardSystemType() {
		return onboardSystemType;
	}

	@Override
	public void setOnboardSystemType(OnboardSystemType onboardSystemType) {
		this.onboardSystemType = onboardSystemType;
	}

	@Override
	public OnboardSystemStatus getOnboardSystemStatus() {
		return status;
	}

	@Override
	public void setOnboardSystemStatus(OnboardSystemStatus status) {
		this.status = status;
	}

}
